package com.etc.drug.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data  //药品入库表
public class Storage {
    private String storageId;  //入库编号
    private String drugId;  //药品编号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date drugValidity; //药品有效期
    private String storageNum;  //入库数量
    private Date storageTime;  //入库时间
    private Drug drug;  //药品对象
}
